package com.czn.service;

import com.czn.entity.Patient;
import com.czn.vo.ResponseResult;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;
import java.util.Map;

/**
 * @author ChenZeNan
 * @create 2021-04-17 15:29
 */
public interface IPatientService {
    /*分页查询患者*/
    PageQuery<Patient> findPatientList(long pageNo, long pageSize, String name, String certId);

    /*新增患者*/
    ResponseResult addPatient(Patient patient);

    /*修改患者信息*/
    ResponseResult editPatient(Patient patient);

    /*根据记录id查询患者*/
    Patient findPatientById(Integer id);

    /*根据id删除患者*/
    ResponseResult deletePatientById(Integer id);

    /*查询所有病人 */
    List<Patient> findAllPatient();

    /*根据患者id查询患者*/
    Patient findPatientByUserId(Integer id);

    /*查询信息*/
    Map<String, List> findInfo(String type, String name);
}
